<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Adminlog Controller
 * Build by Phuc Nguyen
 * Contact : nguyenvanphuc0626@gmail.com
 */

class Adminlog_static1_model extends MY_Model{
	
	public function __construct(){
		parent::__construct();
		$this->table_name = 'book_adminlog_static1';
	}
        public function selectAll($params){
                $this->db->select('*');
                $this->db->from($this->table_name);
                $this->db->order_by('date','desc');
                $this->db->limit($params);
                $query = $this->db->get();
//                echo $this->db->last_query();exit;
                return $query->result(); 
        }
}